<%--
    Document   : Pacientes
    Created on : 19/06/2010, 03:00:08 PM
    Author     : rvertiz
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="en-us">

<TITLE>Clinica Anglolab - Mantenimiento de Pacientes</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<LINK href="css/styles.css" rel=stylesheet>
<script language="javascript">
    function modificarPacientes(link){
        var id = link.parentNode.parentNode.childNodes[0].innerHTML;
        document.frmPacientes.Orden=link.parentNode.parentNode.childNodes[0].innerHTML;

    }
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF topmargin="0" leftmargin="0">
<center>
  <TABLE WIDTH=791 BORDER=0 CELLPADDING=0 CELLSPACING=0>
	<TR>
		<TD width="13">
			<IMG SRC="spacer.gif" WIDTH=13 HEIGHT=1></TD>
		<TD width="72">
			<IMG SRC="spacer.gif" WIDTH=72 HEIGHT=1></TD>
		<TD width="57">
			<IMG SRC="spacer.gif" WIDTH=57 HEIGHT=1></TD>
		<TD width="80">
			<IMG SRC="spacer.gif" WIDTH=80 HEIGHT=1></TD>
		<TD width="58">
			<IMG SRC="spacer.gif" WIDTH=58 HEIGHT=1></TD>
		<TD width="7">
			<IMG SRC="spacer.gif" WIDTH=7 HEIGHT=1></TD>
		<TD width="12">
			<IMG SRC="spacer.gif" WIDTH=12 HEIGHT=1></TD>
		<TD width="50">
			<IMG SRC="spacer.gif" WIDTH=50 HEIGHT=1></TD>
		<TD width="10">
			<IMG SRC="spacer.gif" WIDTH=10 HEIGHT=1></TD>
		<TD width="105">
			<IMG SRC="spacer.gif" WIDTH=105 HEIGHT=1></TD>
		<TD width="9">
			<IMG SRC="spacer.gif" WIDTH=9 HEIGHT=1></TD>
		<TD width="95">
			<IMG SRC="spacer.gif" WIDTH=95 HEIGHT=1></TD>
		<TD width="18">
			<IMG SRC="spacer.gif" WIDTH=18 HEIGHT=1></TD>
		<TD width="80">
			<IMG SRC="spacer.gif" WIDTH=80 HEIGHT=1></TD>
		<TD width="124">
			<IMG SRC="spacer.gif" WIDTH=124 HEIGHT=1></TD>
		<TD width="1"></TD>
	</TR>
	<TR>
		<TD COLSPAN=15>
			<IMG SRC="images/Slice01.gif" WIDTH=790 HEIGHT=239></TD>
		<TD width="1">
			<IMG SRC="spacer.gif" WIDTH=1 HEIGHT=239></TD>
	</TR>
	<TR>
		<TD COLSPAN=6>
			<IMG SRC="images/Slice02.gif" WIDTH=287 HEIGHT=42></TD>
		<TD COLSPAN=3>
			<a href="home.html">
			<IMG SRC="images/Slice03.gif" WIDTH=72 HEIGHT=42 onMouseOver="this.src='images/Slice03_over.gif';" onMouseOut="this.src='images/Slice03.gif';" border="0"></a></TD>
		<TD width="105">
			<a href="pacientes.htm">
			<IMG SRC="images/Slice04.gif" WIDTH=105 HEIGHT=42 onMouseOver="this.src='images/Slice04_over.gif';" onMouseOut="this.src='images/Slice04.gif';" border="0"></a></TD>
		<TD COLSPAN=2>
			<a href="ficha_medica.htm">
			<IMG SRC="images/Slice05.gif" WIDTH=104 HEIGHT=42 onMouseOver="this.src='images/Slice05_over.gif';" onMouseOut="this.src='images/Slice05.gif';" border="0" ></a></TD>
		<TD COLSPAN=2>
			<a href="Resultados.html">
			<IMG SRC="images/Slice06.gif" WIDTH=98 HEIGHT=42 onMouseOver="this.src='images/Slice06_over.gif';" onMouseOut="this.src='images/Slice06.gif';" border="0"></a></TD>
		<TD width="124">
			<a href="usuarios.html">
			<IMG SRC="images/Slice07.gif" WIDTH=124 HEIGHT=42 onMouseOver="this.src='images/Slice07_over.gif';" onMouseOut="this.src='images/Slice07.gif';" border="0"></a></TD>
		<TD width="1">
			<IMG SRC="spacer.gif" WIDTH=1 HEIGHT=42></TD>
</TABLE>
</center>

<div style="position: absolute; width: 789px; height: 268px; z-index: 1; left: 321px; top: 291px" id="FormularioPacientes">
	<form name="frmPacientes" action="pacientes.htm" method="post">
        <input type="hidden" name="metodo" value="doInsertarPaciente"/>
		<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->

		<table border="0" width="100%" style="border-collapse: collapse">
		<tr class="header1">
			<td colspan="6">MANTENIMIENTO DE PACIENTES</td>
		</tr>
		<tr>
			<td width="14%">&nbsp;</td>
			<td width="17%">&nbsp;</td>
			<td width="12%">&nbsp;</td>
			<td width="16%">&nbsp;</td>
			<td width="11%">&nbsp;</td>
			<td width="29%">&nbsp;</td>
		</tr>
		<tr class="altrow1">
			<td width="14%">&nbsp;</td>
			<td width="17%">&nbsp;</td>
			<td width="12%">&nbsp;</td>
			<td width="16%">&nbsp;</td>
			<td width="11%">&nbsp;</td>
			<td width="29%">&nbsp;</td>
		</tr>

		<tr>
                    <td width="11%">
                        <font face="Arial" size="1" color="#0099FF">Cod. Paciente :</font>
                    </td>
                    <td width="23%">
                        <input type="text" name="CodPaciente" size="20">
                    </td>
                    <td width="9%">&nbsp;</td>
                    <td width="25%">&nbsp;</td>
                    <td width="8%">&nbsp;</td>
                    <td width="21%">&nbsp;</td>
                </tr>
							<tr>
						<td width="11%">
						<font face="Arial" size="1" color="#0099FF">Nombres :</font></td>
						<td width="23%"><input type="text" name="nomPaciente" size="20"></td>
						<td width="9%">
						<font face="Arial" size="1" color="#0099FF">Apellidos :</font></td>
						<td width="25%"><input type="text" name="apPaciente" size="20"></td>
						<td width="9%">
						<font face="Arial" size="1" color="#0099FF">Sexo :</font></td></td>
						<td width="25%">
                                                    <font size="1" face="Arial">
                                                        <select size="1"  name="Sexo">
                                                            <option value="1">Masculino</option>
                                                            <option value="2">Femenino</option>
                                                        </select>
                                                    </font>
                                                </td>

					</tr>
					<tr>
						<td width="11%">
						<font face="Arial" size="1" color="#0099FF">Fecha Nac. :</font></td>
						<td width="23%"><input type="text" name="FecNac" size="13"></td>
						<td width="9%">
						<font face="Arial" size="1" color="#0099FF">Tipo Doc. :</font></td></td>
						<td width="25%">
                                                    <font size="1" face="Arial">
                                                        <select size="1"  name="TipoDoc">
                                                            <option value="1">Libreta Militar</option>
                                                            <option value="2">DNI</option>
                                                            <option value="3">Carné de Extranjería</option>
                                                        </select>
                                                    </font>
                                                </td>
						<td width="8%">
						<font face="Arial" size="1" color="#0099FF">Doc. Ident. :</font></td></td>
						<td width="21%"><input type="text" name="NumDoc" size="14"></td>
					</tr>
					<tr>
						<td width="11%">
						<font face="Arial" size="1" color="#0099FF">E-mail :</font></td>
						<td width="23%" colspan="1"><input type="text" name="Email" size="20"></td>
						<td width="11%">
						<font face="Arial" size="1" color="#0099FF">Teléfono :</font></td>
						<td width="23%"><input type="text" name="Telefono" size="14"></td>

					</tr>

					<tr>
						<td width="11%">
							<font face="Arial" size="1" color="#0099FF">Login :</font>
						</td>
						<td width="23%">
							<input type="text" name="Login" size="14">
						</td>
						<td width="9%">
							<font face="Arial" size="1" color="#0099FF">Password :</font>
						</td>
						<td width="25%">
							<input type="password" name="Pass" size="14">
						</td>

					</tr>
		<tr class="altrow1">
			<td width="98%" colspan="6">&nbsp;</td>
		</tr>
		<tr>
			<td width="98%" colspan="6">&nbsp;</td>
		</tr>
		<tr>
			<td width="14%">&nbsp;</td>
			<td width="17%">&nbsp;</td>
			<td width="12%"><input type="button" value="Buscar" name="B2"></td>
			<td width="16%"><input type="submit" value="Ingresar"></td>
			<td width="11%">&nbsp;</td>
			<td width="29%">&nbsp;</td>
		</tr>

	</table>


	</form>
	</div>

<div style="position: absolute; width: 789px; height: 100px; z-index: 2; left: 321px; top: 580px" id="ListadoPacientes">
<table border="0" width="100%" style="border-collapse: collapse">
    <!---->
	<tr  class="header">
		<td width="133">CODIGO</td>
		<td width="123">PACIENTE</td>
		<td width="261">SEXO</td>
		<td width="124">DOCUMENTO</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>

      <c:forEach items="${paciente}" var="u">

        <tr  class="altrow">
            <td width="133">${u.id_paciente}</td>
		<td width="125">${u.mombres}</td>
		<td width="263">${u.sexo}</td>
		<td width="126">${u.numero_documento}</td>
		<td>
                    <a href="javascript:;" onclick="javascript:modificarPacientes(this);">
                        <img border="0" src="images/modificar.gif" width="25" height="19">
                    </a>
                </td>
		<td>
		<p align="center">&nbsp;
		<img border="0" src="images/eliminar.gif" width="20" height="18"></td>
	</tr>

        </c:forEach>


</table>
</div>

</BODY>
</HTML>